<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>修改实训订单</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
	<!-- Bootstrap 3.3.7 -->
	<!--link导入外部的css，js样式，如果导入的资源和本页面在同一个文件夹下，直接文件名即可-->
	<link rel="stylesheet" th:href="@{/asserts/bower_components/bootstrap/dist/css/bootstrap.min.css}">
	<!-- jQuery 3 -->
	<script th:src="@{/asserts/bower_components/jquery/dist/jquery.min.js}"></script>
	<!-- Bootstrap 3.3.7 -->
	<script th:src="@{/asserts/bower_components/bootstrap/dist/js/bootstrap.min.js}"></script>
	<!-- Font Awesome -->
	<link rel="stylesheet" th:href="@{/asserts/bower_components/font-awesome/css/font-awesome.min.css}">
	<!-- Ionicons -->
	<link rel="stylesheet" th:href="@{/asserts/bower_components/Ionicons/css/ionicons.min.css}">
	<!-- DataTables -->
	<link rel="stylesheet" th:href="@{/asserts/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css}">
	<!-- Theme style -->
	<link rel="stylesheet" th:href="@{/asserts/dist/css/AdminLTE.min.css}">
	<!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
	<link rel="stylesheet" th:href="@{/asserts/dist/css/skins/_all-skins.min.css}">


    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <![endif]-->

    <!-- Google Font -->
<!--    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">-->
    <style type="text/css">
    	.search{
			margin-top: 40px;
			margin-left: 40px;
			position: relative;
		}
    </style>

</head>
<body >



	<div class="wrapper">
		<!-- Content Wrapper. Contains page content -->
		<!-- Content Header (Page header) -->
		<section class="content-header">
			<h4>
				<i class="fa fa-edit"></i> 修改实训订单
			</h4>
			
		</section>

		<!-- Main content -->
		<section class="content">
			<div class="row">
				<div class="col-xs-12">
					<div class="box">
						<!-- /.box-header 部门列表的显示  table  表格  th/td单元个   th字体加粗，行标题-->
						<div class="box-body">
							<form class="form-horizontal" method="post" th:action="@{/training/trainingOrderModify(trainingOrderId=${trains.trainingOrderId},pageSize=${pageSize},currentPage=${currentPage},searchUrl=${searchUrl})}">
								<div class="form-group">
								  <label for="trainingOrderName" class="col-sm-2 control-label">
									  <span style="color: red;">*</span> 姓名：</label>
								  <div class="col-sm-5">
								     <input type="text" class="form-control" autocomplete="off" id="trainingOrderName" required
											name="trainingOrderName" th:value="${trains.trainingOrderName}" />
								  </div>
								</div>
							  <div class="form-group">
							    <label  class="col-sm-2 control-label">
									<span style="color: red;">*</span> 实训基地：</label>
							    <div class="col-sm-5">
									<select name="trainingOrderTrainingBase" class="form-control">
										   <option th:selected="${trains.trainingOrderTrainingBase.trim() eq '武汉园区基地'}" value="武汉园区基地">武汉园区基地</option>
										   <option th:selected="${trains.trainingOrderTrainingBase.trim() eq '苏州园区基地'}" value="苏州园区基地">苏州园区基地</option>
							      </select>
							    </div>
							  </div>
							  <div class="form-group">
							    <label for="trainingOrderIDNumber" class="col-sm-2 control-label">身份证号：</label>
							     <div class="col-sm-5">
							        <input type="text" class="form-control" autocomplete="off" id="trainingOrderIDNumber"
										   name="trainingOrderIDNumber" th:value="${trains.trainingOrderIDNumber}" />
							    </div>
							  </div>
							  <div class="form-group">
							    <label for="trainingOrderTel" class="col-sm-2 control-label">
									<span style="color: red;">*</span> 联系方式：</label>
							     <div class="col-sm-5">
							        <input type="tel" class="form-control" autocomplete="off" id="trainingOrderTel" required
										   name="trainingOrderTel" th:value="${trains.trainingOrderTel}" />
							    </div>
							  </div>
							  <div class="form-group">
							    <label  class="col-sm-2 control-label">
									<span style="color: red;">*</span>性别：</label>
							     <div class="col-sm-5">
									 <select class="form-control" name="trainingOrderSex">
										   <option th:selected="${trains.trainingOrderSex.trim() eq '男'}" value="男">男</option>
										   <option th:selected="${trains.trainingOrderSex.trim() eq '女'}" value="女">女</option>
									 </select>
							    </div>
							  </div>
							  <div class="form-group">
							    <label for="trainingOrderSchool" class="col-sm-2 control-label"> 院校：</label>
							    <div class="col-sm-5">
									<input type="text" class="form-control" autocomplete="off" id="trainingOrderSchool"
										   name="trainingOrderSchool" th:value="${trains.trainingOrderSchool}" />
							    </div>
							  </div>
							  <div class="form-group">
							    <label for="trainingOrderEducation" class="col-sm-2 control-label"> 学历：</label>
							    <div class="col-sm-5">
							      <input type="text" class="form-control" autocomplete="off" id="trainingOrderEducation"
										 name="trainingOrderEducation" th:value="${trains.trainingOrderEducation}" />
							    </div>
							  </div>
							  <div class="form-group">
							    <label for="trainingOrderPayDate" class="col-sm-2 control-label">
									<span style="color: red;">*</span>缴费日期：</label>
							    <div class="col-sm-5">
									<input type="date" class="form-control" autocomplete="off" id="trainingOrderPayDate" required
										   name="trainingOrderPayDate" th:value="${#dates.format(trains.trainingOrderPayDate, 'yyyy-MM-dd')}" />
							    </div>
							  </div>
							  <div class="form-group">
							    <label for="trainingOrderPayType" class="col-sm-2 control-label">*缴费类型：</label>
							    <div class="col-sm-5">
									<select class="form-control" name="trainingOrderPayType" id="trainingOrderPayType">
										   <option th:selected="${trains.trainingOrderPayType eq '贷款'}" value="贷款">贷款</option>
										   <option th:selected="${trains.trainingOrderPayType eq '转账'}" value="转账">转账</option>
										   <option th:selected="${trains.trainingOrderPayType eq '现金'}" value="现金">现金</option>
										   <option th:selected="${trains.trainingOrderPayType eq '退费'}" value="退费">退费</option>
									</select>
							    </div>
							  </div>
							  <div class="form-group">
							    <label for="trainingOrderSchoolSubsidy" class="col-sm-2 control-label">
									<span style="color: red;">*</span>院校补贴：</label>
							    <div class="col-sm-5">
									<input type="number" step="0.01" class="form-control" autocomplete="off" id="trainingOrderSchoolSubsidy"
										   name="trainingOrderSchoolSubsidy" th:value="${trains.trainingOrderSchoolSubsidy}" />
							    </div>
							  </div>
							  <div class="form-group">
							    <label class="col-sm-2 control-label">补贴到账：</label>
							    <div class="col-sm-5">
									<select class="form-control" name="trainingOrderSubsidyState">
									   <option th:selected="${trains.trainingOrderSubsidyState eq '无'}" value="无">无</option>
									   <option th:selected="${trains.trainingOrderSubsidyState eq '是'}" value="是">是</option>
									   <option th:selected="${trains.trainingOrderSubsidyState eq '否'}" value="否">否</option>
									</select>
							    </div>
							  </div>
							  <div class="form-group">
							    <label for="trainingOrderLiveFee" class="col-sm-2 control-label">住宿费：</label>
							    <div class="col-sm-5">
									<input type="number" step="0.01" class="form-control" autocomplete="off" id="trainingOrderLiveFee"
										   name="trainingOrderLiveFee" th:value="${trains.trainingOrderLiveFee}" />
							    </div>
							  </div>
							  <div class="form-group">
							    <label for="trainingOrderLiveFeeCase" class="col-sm-2 control-label">住宿押金：</label>
							    <div class="col-sm-5">
									<input type="number" step="0.01" class="form-control" autocomplete="off" id="trainingOrderLiveFeeCase"
										   name="trainingOrderLiveFeeCase" th:value="${trains.trainingOrderLiveFeeCase}" />
							    </div>
							  </div>
							  <div class="form-group">
							    <label for="trainingOrderAgencyFee" class="col-sm-2 control-label"> 代办费：</label>
							    <div class="col-sm-5">
									<input type="number" step="0.01" class="form-control" autocomplete="off" id="trainingOrderAgencyFee"
										   name="trainingOrderAgencyFee" th:value="${trains.trainingOrderAgencyFee}" />
							    </div>
							  </div>
							  <div class="form-group">
							    <label class="col-sm-2 control-label">折扣类型：</label>
							    <div class="col-sm-5">
									<select class="form-control" name="trainingOrderDiscountType">
										<option th:selected="${trains.trainingOrderDiscountType eq '无优惠'}" value ="无优惠">无优惠</option>
										<option th:selected="${trains.trainingOrderDiscountType eq '合作院校'}" value="合作院校">合作院校</option>
										<option th:selected="${trains.trainingOrderDiscountType eq '内部优惠'}" value="内部优惠">内部优惠</option>
									</select>
							    </div>
							  </div>

								<div class="form-group">
									<label class="col-sm-2 control-label">
										<span style="color: red;">*</span>渠道专员：</label>
									<div class="col-sm-5">
										<select class="form-control" name="userChannelId">
											<option th:each="member:${mmembers}" th:selected="${member.uid==trains.userChannelId}" th:text="${member.personname}" th:value="${member.uid}"></option>
										</select>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">
										<span style="color: red;">*</span>咨询专员：</label>
									<div class="col-sm-5">
										<select class="form-control" name="userConsultId">
											<option th:each="u:${users}" th:selected="${u.uid==trains.userConsultId}" th:text="${u.personname}" th:value="${u.uid}"></option>
										</select>
									</div>
								</div>
								<div class="form-group">
									<label for="trainingOrderRemarks" class="col-sm-2 control-label"> 备注：</label>
									<div class="col-sm-5">
										<input type="text" class="form-control" autocomplete="off" id="trainingOrderRemarks"
											   name="trainingOrderRemarks" th:value="${trains.trainingOrderRemarks}" />
									</div>
								</div>
							  <div class="form-group">
							    <div class="col-sm-offset-2 col-sm-10">
							      <button type="submit" class="btn btn-info btn-lg">
									  <i class="fa fa-check-square"></i>&nbsp;提交
								  </button>
								  <button type="reset" class="btn btn-info btn-lg">
									  <i class="fa  fa-repeat"></i>&nbsp;重置
								  </button>
								  <a class="btn btn-info btn-lg" th:if="${searchUrl==null||searchUrl.equals('')}" th:href="@{/training/trainingOrderList(currentPage=${currentPage},pageSize=${pageSize})}">
								  	<i class="fa fa-backward"></i> 返回
								  </a>
									<a class="btn btn-info btn-lg" th:if="${searchUrl!=null&&!searchUrl.equals('')}" th:href="@{${searchUrl}(currentPage=${currentPage},pageSize=${pageSize})}">
										<i class="fa fa-backward"></i> 返回
									</a>
							    </div>
							  </div>
							</form>
						  
						</div>
						<!-- /.box-body -->
					</div>
					<!-- /.box -->
				</div>
				<!-- /.col -->
			</div>
			<!-- /.row -->
		</section>
		<!-- /.content -->
	</div>

<!-- ./wrapper -->


	<!-- DataTables -->
	<script th:src="@{/asserts/bower_components/datatables.net/js/jquery.dataTables.min.js}"></script>
	<script th:src="@{/asserts/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js}"></script>
	<!-- SlimScroll -->
	<script th:src="@{/asserts/bower_components/jquery-slimscroll/jquery.slimscroll.min.js}"></script>
	<!-- FastClick -->
	<script th:src="@{/asserts/bower_components/fastclick/lib/fastclick.js}"></script>
	<!-- AdminLTE App -->
	<script th:src="@{/asserts/dist/js/adminlte.min.js}"></script>
	<!-- AdminLTE for demo purposes -->
	<script th:src="@{/asserts/dist/js/demo.js}"></script>
<!-- page script -->
<script>
    $(function () {
        // $('#example1').DataTable();
        $('#example1').DataTable({
            'paging'      : false,
            'lengthChange': false,
            'searching'   : false,
            'ordering'    : false,
            'info'        : false,
            'autoWidth'   : false
        })
       
    })
</script>
</body>
</html>